<?php
$errLevel = error_reporting(E_ALL ^ E_NOTICE);  // suppress NOTICEs
$to      = 'kngan119411@gmail.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: thuytientran91@yahoo.com.vn' . "\r\n" .
    'Reply-To: thuytientran91@yahoo.com.vn' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();
if(mail($to, $subject, $message, $headers)){
	echo 'Sending mail successful to '.$to;
} else {
	echo 'Sending mail failed!';
}
error_reporting($errLevel);  // restore old error levels
?>